package com.itheima.health.dao;

import com.github.pagehelper.Page;
import com.itheima.health.pojo.Setmeal;
import com.itheima.health.result.QueryPageBean;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface SetmealDao {
    /*
    新增套餐
    * */
    void addSetmeal(Setmeal setmeal);
/*
* 添加分组和套餐id
* */
    @Insert("insert into t_setmeal_group(setmeal_id, checkgroup_id) values (#{setmealid},#{checkGroup})")
    void addSetGoup(Integer setmealid, String checkGroup);
    /*
    * 分页查询
    *
    * */
    Page<Setmeal> findall(QueryPageBean queryPageBean);
}
